package com.zoey.boot.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description: 老师实体类
 * @Author: sxgan
 * @Date: 2023-12-06 12:10
 * @Version: 1.0
 **/

@Data
@Component
public class Teacher {

    @Value("${school.teacher.name}")
    public String name;
    @Value("${school.teacher.age}")
    public Integer age;
    @Value("${school.teacher.course}")
    public String course;
}
